import request from "@/utils/request";

// 查询易宝入网列表
export function listYeePay(query) {
  return request({
    url: "/ecs/yeePay/list",
    method: "get",
    params: query,
  });
}

export function queryYeePayIncoming(query) {
  return request({
    url: "/ecs/yeePay/queryYeePayIncoming",
    method: "get",
    params: query,
  });
}

// 查询易宝入网详细
export function getYeePay(id) {
  return request({
    url: "/ecs/yeePay/" + id,
    method: "get",
  });
}

// 新增易宝入网
export function addYeePay(data) {
  return request({
    url: "/ecs/yeePay",
    method: "post",
    data: data,
  });
}

export function incoming(data) {
  return request({
    url: "/ecs/yeePay/incoming",
    method: "post",
    data: data,
  });
}

// 修改易宝入网
export function updateYeePay(data) {
  return request({
    url: "/ecs/yeePay",
    method: "put",
    data: data,
  });
}

export function updateYeePayFeeRate(data) {
  return request({
    url: "/ecs/yeePay/editFeeRate",
    method: "put",
    data: data,
  });
}

// 删除易宝入网
export function delYeePay(id) {
  return request({
    url: "/ecs/yeePay/" + id,
    method: "delete",
  });
}
